<?php
// include function files for this application
require_once('/home/domains/uny-con.com/public_html/uny-con_fns.php');
if (!session_id()) { session_start(); }

//get some variables:
if (isset($_GET['attendee_id'])) $requested_attn_id = $_GET['attendee_id'];
if (isset($_GET['action'])) $action = $_GET['action'];

//This is an admin only script so first lets check to make sure the user is valid and an admin. then we can do toher stuff.

if (!check_valid_user() || ($_SESSION['admin'] != 't')) {
	do_html_header('Unauthorized access', staysmall, $uny);
	echo 'You are not logged in or are not authorized to view this page. Please move along.';
	print_brs(24);
	do_html_footer();
	exit;
	}

// Some functionality: List users with pending status, Display form for approving things



do_html_header('Manage Users', gobig, $uny);

//First we should print some links of the function we may want to do.


//Now lets get the list of people with pending registrations.


if ($attendee_id_array = get_attendees_who_owe()) {
	echo "<h1>The following ".count($attendee_id_array)." people have pending convention registrations</h1>\n";
	print_attendee_table($attendee_id_array);
	}
/*if ($attendee_id_event_array = get_attendees_with_pending(event)) {
	echo "<h2>The following ".count($attendee_id_event_array)." people have pending event registrations</h2>\n";
	echo "<ul class=\"plainul\">\n";
	foreach ($attendee_id_event_array as $row) {
		$userinfo = get_user_info($row['attendee_id']);
		echo "<li>".$row['attendee_id']." <a href=\"attendee_info.php?attendee_id=".$row['attendee_id']."\">".$userinfo['first_name']." ".$userinfo['last_name']."</a></li>\n";
		}
	echo "</ul>\n";
	}*/



do_html_footer(no_news);